﻿using ASmile.Com;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASmile.Win
{
    public partial class FrmCrud<TArgPageData, TListModel> : FrmCrud<TArgPageData, TListModel, TListModel>
         where TListModel : class, new()
         where TArgPageData : ArgPageData, new()
    {
        protected override IBLLCrud<TArgPageData, TListModel, TListModel> BLLObj
        {
            get
            {
                if (BLLObj2 == null) return base.BLLObj;
                return BLLObj2;
            }
        }

        protected virtual IBLLCrud<TArgPageData, TListModel> BLLObj2 { get; }
    }

    public partial class FrmCrud<TListModel> : FrmCrud<ArgPageData, TListModel, TListModel>
         where TListModel : class, new()
    {
        protected override IBLLCrud<ArgPageData, TListModel, TListModel> BLLObj
        {
            get
            {
                if (BLLObj2 == null) return base.BLLObj;
                return BLLObj2;
            }
        }

        protected virtual IBLLCrud<TListModel> BLLObj2 { get; }
    }
}
